package com.quan.system.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;


/**
 * <p>
 * 系统管理-OSS文件上传配置
 * </p>
 *
 * @author 杨浩泉
 * @since 2018-06-11
 */
@Table(name = "tb_system_oss_config")
public class SystemOssConfig implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * ID
	 */
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Integer id;

	/**
	 * OSS云存储服务商名称
	 */
	@Column(name = "oss_name")
	private String ossName;

	/**
	 * 秘钥Key
	 */
	@Column(name = "access_key")
	private String accessKey;

	/**
	 * 密钥Value
	 */
	@Column(name = "secret_key")
	private String secretKey;

	/**
	 * 空间名称
	 */
	@Column(name = "bucket_name")
	private String bucketName;

	/**
	 * 文件前缀
	 */
	@Column(name = "prefix_name")
	private String prefixName;

	/**
	 * 阿里云终端
	 */
	@Column(name = "aliyun_endpoint")
	private String aliyunEndpoint;

	/**
	 * 创建时间
	 */
	private Date ctime;


			
	/**
	 * 获取ID
	 */
	public Integer getId() {
		return id;
	}
	
	/**
	 * 设置ID
	 */
	public void setId(Integer id) {
		this.id = id;
	}
			
	/**
	 * 获取OSS云存储服务商名称
	 */
	public String getOssName() {
		return ossName;
	}
	
	/**
	 * 设置OSS云存储服务商名称
	 */
	public void setOssName(String ossName) {
		this.ossName = ossName;
	}
			
	/**
	 * 获取秘钥Key
	 */
	public String getAccessKey() {
		return accessKey;
	}
	
	/**
	 * 设置秘钥Key
	 */
	public void setAccessKey(String accessKey) {
		this.accessKey = accessKey;
	}
			
	/**
	 * 获取密钥Value
	 */
	public String getSecretKey() {
		return secretKey;
	}
	
	/**
	 * 设置密钥Value
	 */
	public void setSecretKey(String secretKey) {
		this.secretKey = secretKey;
	}
			
	/**
	 * 获取空间名称
	 */
	public String getBucketName() {
		return bucketName;
	}
	
	/**
	 * 设置空间名称
	 */
	public void setBucketName(String bucketName) {
		this.bucketName = bucketName;
	}
			
	/**
	 * 获取文件前缀
	 */
	public String getPrefixName() {
		return prefixName;
	}
	
	/**
	 * 设置文件前缀
	 */
	public void setPrefixName(String prefixName) {
		this.prefixName = prefixName;
	}
			
	/**
	 * 获取阿里云终端
	 */
	public String getAliyunEndpoint() {
		return aliyunEndpoint;
	}
	
	/**
	 * 设置阿里云终端
	 */
	public void setAliyunEndpoint(String aliyunEndpoint) {
		this.aliyunEndpoint = aliyunEndpoint;
	}
			
	/**
	 * 获取创建时间
	 */
	public Date getCtime() {
		return ctime;
	}
	
	/**
	 * 设置创建时间
	 */
	public void setCtime(Date ctime) {
		this.ctime = ctime;
	}

	@Override
	public String toString() {
    	return "UpmsUser{" +
        	"id=" + id +
	            	", ossName=" + ossName +
	            	", accessKey=" + accessKey +
	            	", secretKey=" + secretKey +
	            	", bucketName=" + bucketName +
	            	", prefixName=" + prefixName +
	            	", aliyunEndpoint=" + aliyunEndpoint +
	            	", ctime=" + ctime +
	        "}";
	}

}
